

package com.hulk.dryad.persistence.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.hulk.dryad.common.constant.CommonConstants;
import com.hulk.dryad.persistence.injector.datascope.mapper.DataScopeMapper;
import com.hulk.dryad.persistence.entity.SysDeptRelationModel;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author kim
 * @since 2018-02-12
 */
@DS("#" + CommonConstants.TENANT_ID)
@Mapper
public interface SysDeptRelationMapper extends DataScopeMapper<SysDeptRelationModel> {

	/**
	 * 删除部门关系表数据
	 * @param id 部门ID
	 */
	void deleteDeptRelationsById(Integer id);

	/**
	 * 更改部分关系表数据
	 * @param deptRelation
	 */
	void updateDeptRelations(SysDeptRelationModel deptRelation);

}
